package com.qding.park.manager.pojo.enums;

public enum CardTypeEnum {
	
	WORK_TYPE(1,"工作卡"),
	STORED_TYPE(2,"储值卡"),
	MONTHLY_TYPE(3,"月租卡"),
	TEMP_TYPE(4,"临时卡"),
	VIP_TYPE(5,"vip卡"),
	OTHERS_TYPE(6,"其它");
	
	private int type;
	
	private String desc;
	
	
	public static String getDescByType(int type){
		String desc="";
		if(type==WORK_TYPE.getType()){
			desc=WORK_TYPE.getDesc();
		}else if(type==STORED_TYPE.getType()){
			desc=STORED_TYPE.getDesc();
		}else if(type==MONTHLY_TYPE.getType()){
			desc=MONTHLY_TYPE.getDesc();
		}else if(type==TEMP_TYPE.getType()){
			desc=TEMP_TYPE.getDesc();
		}else if(type==VIP_TYPE.getType()){
			desc=VIP_TYPE.getDesc();
		}else if(type==OTHERS_TYPE.getType()){
			desc=OTHERS_TYPE.getDesc();
		}
		return desc;
		
	}
	private CardTypeEnum(int type,String desc){
		this.type=type;
		this.desc=desc;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	
}
